package com.my.learn.thread;

public class TestThread implements Runnable {

    static int j = 0;
    private int i;

    public TestThread(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + " test " + i);
    }

    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(new TestThread(1));
        thread.start();
        Thread.sleep(10000);
    }

}
